import axios from "@/utils/http";
enum Api {
    websocket = "/v1/websocket",
    SendData = "/v1/SendData",
}

export const websocketList = <T>() => {
    return axios.get<T>(Api.websocket) as T;
};
export const SendData = <T>(parmas: { type: number, accountId: string, taskId?: number }) => {
    return axios.post<T>(Api.SendData, parmas) as T;
};